package com.note.app.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 敏感词过滤配置
 */
@Configuration
public class SensitiveWordConfig {
    
    @Value("${sensitive.word.threshold:10}")
    private int sensitiveWordThreshold;
    
    /**
     * 敏感词阈值
     */
    @Bean
    public int sensitiveWordThreshold() {
        return sensitiveWordThreshold;
    }
} 